package com.center.mapperscan;

import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author dzl
 * @Date 2022/1/20 10:09 上午
 * 扫描路径 注解和标识注解
 */
@Retention(RetentionPolicy.RUNTIME)
@Import({MyMapperScanImport.class})
@Target(ElementType.TYPE)
public @interface MyMapperScan {
    /**
     * @return 要扫描的包路径
     */
    String[] scanBasePackages() default {};
}
